package com.stone.activemqcase.config;/*

 */

import org.apache.activemq.command.ActiveMQTopic;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

import javax.jms.Topic;

/**
 * @ClassName TopicConf
 * @Author Final
 * @Project DataStructures
 */
@Component
public class TopicConf {
    @Value("${topicname}")
    private String topicname;

    @Bean
    public Topic topic(){
        return new ActiveMQTopic(topicname);
    }
}
